<template>
  <div class="tips-dialog">
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
      :show-close="false"
    >
      <span>{{ tipsWords }}</span>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="iknowit">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "tipsDialog",
  props: {
    dialogVisible: {
      type: Boolean,
      default: false
    },
    tipsWords: {
      type: String,
      default: ""
    }
  },
  methods: {
    handleClose() {},
    iknowit() {
      this.$emit("iknowit");
    }
  }
};
</script>
